import { Me, People, Schedule } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const schedule = () => import('@/views/personal/schedule/index.vue');
const user = () => import('@/views/personal/user/index.vue');

const pages = {
  path: '/personal',
  name: 'personal',
  redirect: '/personal/user',
  meta: {
    icon: markRaw(Me),
    title: '个人'
  },
  children: [
    {
      path: 'user',
      name: 'personal_user',
      meta: {
        icon: markRaw(People),
        title: '个人中心'
      },
      component: user
    },
    {
      path: 'schedule',
      name: 'personal_schedule',
      meta: {
        icon: markRaw(Schedule),
        title: '我的日程',
        dot: true,
        dotColor: '#c35c13'
      },
      component: schedule
    }
  ]
};
export default pages;
